Skip to content

feat: implement bank account system with audit logging and support fo…#528

Closed
bryanasb251 wants to merge 4 commits intocode-differently:mainfrom
bryanasb251:feat/Lesson_17
Closed

feat: implement bank account system with audit logging and support fo…#528
bryanasb251 wants to merge 4 commits intocode-differently:mainfrom
bryanasb251:feat/Lesson_17

Conversation

@bryanasb251
Copy link
Copy Markdown
Contributor

Not finished still working on it.... can I get my extension please?

Copy link
Copy Markdown
Contributor

@anthonydmays anthonydmays left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep going, you're headed in the right direction.


// Method to add a value to an existing ArrayList or create a new one if accountNumber doesn't
// exist
public void addToMap(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is weird. Maybe do some research on how to build a logger object. No too difficult to make a simple one.

import java.util.HashSet;
import java.util.Set;

public abstract class BankAccount {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of building your own BankAccount class from scratch, you could take the logic from CheckingAccount.

+ '}';
}
@Override
public void withdraw(double amount) throws InsufficientFundsException {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should all be in the superclass since these are good checks for all accounts, no matter the type.

this.isBusiness = isBusiness;
}

public boolean isBusiness() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@bryanasb251
Copy link
Copy Markdown
Contributor Author

I tried... Ant don't cook me... Remember you said "perfect is the enemy of good."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants